
/*public class Test{
	public void method1(String info){
		info=info+"!";
		System.out.println(info);
	}
	public static void main(String[] args) {
		String info="hello";
		Test test=new Test();
		test.method1(info);
		System.out.println(info);
	}
}*/

/*class Animal{
	String name="animal";
	public void printName(){
		System.out.println(name);
	}
}
class Dog extends Animal{
	String name="dog";
}
	public class Test{
		public static void main(String[] args) {
			Animal a=new Dog();
			System.out.println(a instanceof Dog);
			System.out.println(a instanceof Animal);
			System.out.println(a instanceof System);
		}
	}
*/

public class Test{
	private int num=4;
	public static void change(Test t){
		t.num=10;
	}
	public static void main(String[] args) {
		Test t=new Test();
		t.num=12;
		change(t);
		System.out.println(t.num);
	}
}